import { useI18n } from 'vue-i18n';

export const OPERATE_TYPE_STICK = 1;
export const OPERATE_TYPE_PUBLISH = 2;
export const OPERATE_STATUS_ON = 1;
export const OPERATE_STATUS_OFF = 0;
export const OPERATE_STATUS_DISABLE = 2;
export const OPERATE_STATUS_REJECT = 3;
export const OPERATE_STATUS_NOTPASSED = 4;


export const TYPE_STICK_ON = 1;
export const TYPE_STICK_OFF = 0;

export const STATUS_PUBLISHED = 1;
export const STATUS_OFFLINE = 3;
export const STATUS_PENDING = 4;
export const STATUS_PASS = 5;

export function useStatusList() {
  const { t } = useI18n();

  return {
    [STATUS_PUBLISHED]: t('settings.view.journalism.index.status.1'),
    [STATUS_OFFLINE]: t('settings.view.journalism.index.status.3'),
    [STATUS_PENDING]: t('settings.view.journalism.index.status.4'),
  }
}

export function useTypeList() {
  const { t } = useI18n();

  return {
    [TYPE_STICK_ON]: t('settings.view.journalism.index.type.1'),
    [TYPE_STICK_OFF]: t('settings.view.journalism.index.type.2'),
  }
}
